Fix the spinbuttons in the color selector
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 4 Sep 2008 00:49:16 +0000 (00:49 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 4 Sep 2008 00:49:16 +0000 (00:49 +0000)
svn path=/trunk/; revision=21272

ChangeLog
gtk/gtkcolorsel.c

index 4a925e905edd51f2862a69922536114368df4e0c..47695e3cf4f7e7cca73fba8ad9b1647be79bc61f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-09-03  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkcolorsel.c: Set page_size to 0 for the spinbuttons
+       in the color selector.
+
        * README.in: Add a note about the GtkAdjustment clamping change
 
 2008-09-03  Matthias Clasen  <mclasen@redhat.com>
index c21b512e83e2ca78ccfee8eaafc86b649ae08af9..49a6bbd51ca9196ee4af8b11a8fc8d652185ec26 100644 (file)
@@ -2037,16 +2037,16 @@ make_label_spinbutton (GtkColorSelection *colorsel,
 
   if (channel_type == COLORSEL_HUE)
     {
-      adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 360.0, 1.0, 1.0, 1.0));
+      adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 360.0, 1.0, 1.0, 0.0));
     }
   else if (channel_type == COLORSEL_SATURATION ||
           channel_type == COLORSEL_VALUE)
     {
-      adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 100.0, 1.0, 1.0, 1.0));
+      adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 100.0, 1.0, 1.0, 0.0));
     }
   else
     {
-      adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 1.0, 1.0));
+      adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 1.0, 0.0));
     }
   g_object_set_data (G_OBJECT (adjust), I_("COLORSEL"), colorsel);
   *spinbutton = gtk_spin_button_new (adjust, 10.0, 0);